.c7n-apitest-modal {
  position: relative;
  padding-top: 26px;
  text-align: center;

  .c7n-apitest-modal-icon {
    height: 30px;
    width: 41px;
    margin-right: 8px;
    // background-image: url('./icon/choerodon_logo_color.svg');
    background-repeat: no-repeat;
    background-size: auto 31px;
    line-height: 30px;
    font-size: 22px;
  }

  .c7n-apitest-modal-icon-content {
    display: flex;
    justify-content: center;
  }

  .c7n-apitest-modal-default-icon {
    background-image: url('./icon/choerodon_logo_color.svg');
  }

  .c7n-apitest-modal-icon-title {
    color: rgba(0, 0, 0, 0.65);
    font-size: 22px;
  }

  .c7n-apitest-modal-title {
    margin-top: 22px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.65);
  }

  form {
    margin-top: 30px;
    text-align: start;
    padding: 0 18px;
  }

  .c7n-apitest-modal-btn-group {
    position: absolute;
    top: 300px;
    left: 18px;
    display: flex;
    justify-content: space-between;
    line-height: 32px;
    width: 370px;
    margin: 0 auto;

    button {
      width: 120px;
    }
  }
}

.c7n-iam-TextEditToggle-text {
  cursor: text;
  position: relative;
  padding: 0 20px 2px 0;
}

.c7n-iam-TextEditToggle-text .c7n-iam-TextEditToggle-text-icon {
  color: rgba(0, 0, 0, .65);
  display: none;
}

.c7n-iam-TextEditToggle-text:hover .c7n-iam-TextEditToggle-text-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  z-index: 10;
  transform: translateY(-50%);
}

.c7n-input-focus + .c7n-iam-TextEditToggle-text-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  z-index: 10;
  transform: translateY(-50%);
}

.c7n-iam-TextEditToggle-edit-icon {
  // display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  color: rgba(0, 0, 0, .65);
  background: rgba(0, 0, 0, 0.08);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.c7n-iam-TextEditToggle-edit {
  .c7n-form-item {
    padding: 0;
    margin: 0;
  }
}

.c7n-iam-apitest {
  .c7n-tree li span.c7n-tree-switcher {
    line-height: 28px;
  }

  .c7n-spin-nested-loading {
    flex: 1;
  }
  .c7n-spin-container {
    height: 100%;
  }

  &-bar {
    //position: fixed;
    width: 22.5px;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    &-button {
      cursor: pointer;
      width: 22px;
      height: 22px;
      background-color: #3f51b5;
      color: white;
      text-align: center;
      line-height: 18px;
      border-radius: 3px;
      margin-bottom: 10px;
    }
    p {
      cursor: pointer;
      background: rgba(0, 0, 0, 0.08);
      text-align: center;
      color: rgba(0, 0, 0, 0.65);
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.01em;
      line-height: 20px;
      margin-bottom: 24px;
    }
  }

  &-content {
    height: 100%;
    display: flex;
    padding-top: 12px;
    min-height: 300px;

    h5 {
      font-size: 16px;
      color: #000;
      margin-bottom: 12px;
    }

    .string,
    .number {
      color: #800;
    }
    .boolean,
    .undefined,
    .null {
      color: #00bfa5;
    }

    &-v-resize {
      height: 100%;
      width: 4px;
      position: absolute;
      background: #fff;
      left: 500px;
      z-index: 2;
      cursor: col-resize;
      user-select: none;
    }

    &-tree-container {
      display: block;
      width: 300px;

      &-hidden {
        display: none;
      }
    }

    &-right {
      padding: 0 20px 0;
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      overflow-y: auto;

      &-container {

        // 右侧顶部url
        &-title {
          display: flex;
          flex-direction: row;
          align-items: center;

          &-url {
            font-size: 20px;
            color: #000;
          }

          &-rangeTag {
            display: inline-block;
            width: 50px;
            height: 25px;
            text-align: center;
            line-height: 25px;
            border-radius: 2px;
            font-size: 15px;
            margin: -1px 0 0 30px;

            &-inner {
              background: rgba(244, 67, 54, 0.20);
              color: #f44336;
            }

            &-outer {
              background: rgba(0, 191, 165, 0.20);
              color: #00bfa5;
            }
          }

          &-methodTag {
            margin-right: 12px;
            height: 18px;
            text-align: center;
            font-size: 13px;
            color: #fff;
            text-transform: uppercase;
            border-radius: 2px;

            > span {
              display: inline-block;
              transform: scale(.8);
            }

            &-get {
              background: #4d90fe;
            }

            &-post {
              background: #00bfa5;
            }

            &-put {
              background: #ffb100;
            }

            &-delete {
              background: #f44336;
            }

            &-options {
              background: #743be7;
            }

            &-patch {
              background: #ff7043;
            }
          }
        }

        // 接口信息及响应数据
        &-info {
          margin-top: 20px;

          &-title {
            margin-bottom: 10px;

            span {
              display: inline-block;
              width: 50%;
              font-size: 16px;
              font-weight: 500;
              color: #000;
            }
          }

          &-content {
            position: relative;
            display: flex;
          }

          // 接口信息的内容
          &-interfaceinfo {
            padding: 20px;
            background: #f8f8f8;
            position: relative;
            width: 48%;
            word-wrap: break-word;

            &-row {
              margin-bottom: 14px;

              div:first-child {
                font-size: 14px;
                color: #000;
              }

              div:last-child {
                font-size: 14px;
                color: rgba(0, 0, 0, 0.65);
                word-break: break-all;
              }
            }
          }

          // 响应数据的内容
          &-responsedata {
            position: absolute;
            height: 100%;
            width: 50%;
            right: 0;
            overflow: auto;
            padding: 13px 16px;
            background: #f1f9ff;
            font-size: 14px;

            pre {
              width: 20px;
              margin-bottom: 0;
              overflow: visible;
            }
          }
        }

        // 参数表格
        &-interface-test {
          margin-top: 10px;

          .c7n-interface-test-response-params {
            .body-container {
              height: 120px;
              overflow-y: scroll;
            }

            .uploadContainer {
              position: relative;
              height: 32px;

              input[type='file'] {
                position: absolute;
                left: 38px;
                top: 5px;
                z-index: 1;
              }

              button {
                position: absolute;
                z-index: 3;
              }

              .emptyMask {
                position: absolute;
                z-index: 2;
                width: 109px;
                height: 31px;
                top: 0;
                background: white;
              }
            }

            .c7n-form-item {
              margin-bottom: 0;
            }

            .c7n-input-placeholder {
              color: #d50000;
            }

            .c7n-form-explain {
              display: none;
            }

            .paramTextarea::-webkit-input-placeholder {
              /* WebKit browsers */
              color: #d50000;
            }

            .paramTextarea:-moz-placeholder {
              /* Mozilla Firefox 4 to 18 */
              color: #d50000;
            }

            .paramTextarea::-moz-placeholder {
              /* Mozilla Firefox 19+ */
              color: #d50000;
            }

            .paramTextarea::-ms-input-placeholder {
              /* Internet Explorer 10+ */
              color: #d50000;
            }

            .errorTextarea::-webkit-input-placeholder {
              /* WebKit browsers */
              color: #d50000;
            }

            .errorTextarea:-moz-placeholder {
              /* Mozilla Firefox 4 to 18 */
              color: #d50000;
            }

            .errorTextarea::-moz-placeholder {
              /* Mozilla Firefox 19+ */
              color: #d50000;
            }

            .errorTextarea::-ms-input-placeholder {
              /* Internet Explorer 10+ */
              color: #d50000;
            }
          }

          .c7n-url-container {
            margin-top: 30px;

            .c7n-authorize-info {
              margin-bottom: 20px;

              .info {
                font-size: 16px;
                color: #000;
              }

              button {
                margin-left: 50px;
              }
            }

            .method {
              display: inline-block;
              padding: 8px 12px;
              text-align: center;
              text-transform: uppercase;
              border-radius: 2px 0 0 2px;
              font-size: 13px;
              color: #fff;
            }

            input {
              outline: none;
              display: inline-block;
              margin-left: 0;
              margin-right: 24px;
              width: 64%;
              padding: 7px 0 7px 14px;
              border-top: 1px solid rgba(0, 0, 0, 0.12);
              border-right: 1px solid rgba(0, 0, 0, 0.12);
              border-bottom: 1px solid rgba(0, 0, 0, 0.12);
              border-left: none;
              border-top-right-radius: 2px;
              border-bottom-right-radius: 2px;
            }
          }

          .c7n-response-container {
            margin: 32px 1px 1px 3px;
            padding: 24px 16px 30px 16px;
            box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.20), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);

            pre {
              width: 20px;
              margin-bottom: 0;
              overflow: visible;
            }

            .c7n-response-code {
              display: flex;

              .c7n-iam-apitest-statusCode {
                width: 45px;
                height: 25px;
                margin-left: 30px;
                font-size: 15px;
                border-radius: 2px;
                text-align: center;
                line-height: 25px;
              }

              .c7n-iam-apitest-code {
                &-1 {
                  color: #4d90fe;
                  background: rgba(77, 144, 254, 0.20);
                }

                &-2 {
                  color: #00bfa5;
                  background: rgba(0, 191, 165, 0.20);
                }

                &-3 {
                  color: #ff9915;
                  background: rgba(255, 153, 21, 0.20);
                }

                &-4 {
                  color: rgba(0, 0, 0, 0.65);
                  background: rgba(0, 0, 0, 0.12);
                }

                &-5 {
                  color: #f44336;
                  background: rgba(244, 67, 54, 0.20);
                }
              }

              .response-code-container {
                height: 60px;
                margin-top: 12px;
                background: #f1f9ff;
                line-height: 60px;
                color: #444;
                font-size: 14px;
                text-indent: 16px;
              }
            }

            .c7n-response-body {
              margin-top: 24px;
              position: relative;

              .response-body-container {
                width: 100%;
                max-height: 228px;
                padding: 16px;
                overflow: auto;
                background: #f1f9ff;
                //white-space: nowrap;
                font-size: 14px;
                word-break: break-word;
                display: flex;

                &:hover {
                  i.icon.icon-library_books {
                    display: inline-block;
                  }
                }
              }
              i.icon.icon-library_books {
                position: absolute;
                top: 50px;
                right: 16px;
                color: #3f51b5;
                cursor: pointer;
                font-size: 25px;
                background: white;
                display: none;
              }
            }

            .c7n-curl {
              margin-top: 24px;
              position: relative;

              .curl-container {
                width: 100%;
                max-height: 228px;
                margin-top: 12px;
                line-height: 1.5;
                padding: 16px;
                //white-space: nowrap;
                word-break: break-word;
                overflow: auto;
                background: #f1f9ff;
                color: #444;
                font-size: 14px;

                &:hover {
                  i.icon.icon-library_books {
                    display: inline-block;
                  }
                }

                pre {
                  width: 20px;
                }
              }

              i.icon.icon-library_books {
                position: absolute;
                top: 50px;
                right: 16px;
                color: #3f51b5;
                cursor: pointer;
                font-size: 25px;
                background: white;
                display: none;
              }
            }
          }
        }
      }
    }
  }
}
